package io.renren.modules.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.dao.DetailDao;
import io.renren.modules.entity.DetailEntity;
import io.renren.modules.service.DetailService;


@Service("detailService")
public class DetailServiceImpl extends ServiceImpl<DetailDao, DetailEntity> implements DetailService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<DetailEntity> page = this.selectPage(
                new Query<DetailEntity>(params).getPage(),
                new EntityWrapper<DetailEntity>()
        );

        return new PageUtils(page);
    }

}
